package com.Ele_Demo.jackiez;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;
import android.widget.TextView;
import android.app.TabActivity;  
import android.content.Intent;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TabHost;


public class TabTest extends Activity {
    /** Called when the activity is first created. */
	private TabHost tabs1;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.tabtest);
        setContentView(R.layout.tabactivity);
        tabs1=(TabHost)findViewById(R.id.tabhost);     
        tabs1.setup();    
        
        tabs1.addTab(tabs1.newTabSpec("one").setContent(R.id.tab_demo_tv1).setIndicator("TAB 1")); 
        tabs1.addTab(tabs1.newTabSpec("two").setContent(R.id.tab_demo_tv2).setIndicator("TAB 2")); 
        tabs1.setCurrentTab(0);              

        //TabHost tabs = getTabHost();

        //tabs.addTab(tabs.newTabSpec("tab1").setIndicator("Test!!").setContent(new Intent(this, Tab1.class)));
        
    /*    
        // Set Tab1 
        TabSpec tab1 = tabs.newTabSpec("tab1");
        tab1.setIndicator("Android");      // Set tab word
        //tab1.setContent(R.id.content1);    // Tab is selected,Show view
        tabs.addTab(tab1);                // Add tab to TabHost
      */  
        // Set Tab2 
        //TabSpec tab2 = tabs.newTabSpec("tab2");
        //tab2.setIndicator("Egg");      // Set tab word
        //tab2.setContent(R.id.content2);    // Tab is selected,Show view
        //tabs.addTab(tab2);                // Add tab to TabHost
        //tabs.setBackgroundColor(Color.argb(150, 22, 70, 150));
        // Tab default 
        //tabs.setCurrentTab(0);
        
    }

	}
   
    